/**
 * @param {[type]} [varname] [description]
 */
import './add.less'
import layer from '@/components/layer'
import dicts from '@/mixins/dicts'

export default {
	name: 'addClue',
	mixins: [dicts],
	data() {
		return {
			// form数据
			formData: {
				caseInformer: {},
				caseBeReported: {},
				caseInfo: {}
			},
			tableData:{
				data: {},
				rules:{
					beReportedName: { required: true, message: '请输入被反映人姓名', trigger: 'blur' },
					beReportedPhone: [
						{ required: true, message: '请输入被反映人手机号', trigger: 'blur' },
						{ pattern: /^1[3|5|6|7|8|9]\d{9}$/, message: '手机号格式不正确', trigger: 'blur' }
					],
					salesDaptName: { required: true, message: '请输入营业部名称', trigger: 'blur' },
					beReportedOrg: { required: true, message: '请输入被反映人所属机构', trigger: 'blur' },
				}
			},
			cancelLayer: {
				title: '确认',
				show: false
			}
		}
	},
}